jQuery(".span14-tablet").slide({mainCell:".bd ul",effect:"fold",autoPlay:true,easing:"easeInQuint",delayTime:1000,interTime:8000});
    	$(".header-main__search-area__search-icon").toggle(function(){
    		$(".search-page").addClass("search-page--active");
    		$(this).addClass("header-main__search-area__search-icon--active");
    		$(".globalnav").addClass("globalnav--hide");
    		$(".header-main__logo-area__menu-button").removeClass("header-main__logo-area__menu-button--active");
    	},function(){
    		$(".search-page").removeClass("search-page--active");
    		$(this).removeClass("header-main__search-area__search-icon--active");
    	})
    	$(".header-main__logo-area__menu-button").toggle(function(){
    		$(".globalnav").removeClass("globalnav--hide");
    		$(this).addClass("header-main__logo-area__menu-button--active");
    		$(".search-page").removeClass("search-page--active");
    		$(".header-main__search-area__search-icon").removeClass("header-main__search-area__search-icon--active");
    	},function(){
    		$(".globalnav").addClass("globalnav--hide");
    		$(this).removeClass("header-main__logo-area__menu-button--active");
    	})
    	$(".social-share").toggle(function(){
    		$(".social-share__button").addClass("dropdown-activator--active");
    		$(".dropdown").addClass("dropdown--active");
    	},function(){
    		$(".social-share__button").removeClass("dropdown-activator--active");
    		$(".dropdown").removeClass("dropdown--active");
    	})
    	$(".timeline-hero__meta-scorecard__points").hover(function(){
    		$(".tooltip").addClass("tooltip--active");
    	},function(){
    		$(".tooltip").removeClass("tooltip--active");
    	})
    	$(".change-language").click(function(){
    		if($(this).html()=="中"){
    			$(this).html("en");
    		}else if($(this).html()=="en"){
    			$(this).html("中");
    		}
    	})
    	$(".active-tab-forecast").click(function(){
    		$(this).removeClass("button--light").addClass("button--dark");
    		$(".active-tab").removeClass("button--dark").addClass("button--light");
  	        $(".active-forecast").show();
  	        $(".active-failure").hide();
  })
  $(".active-tab").click(function(){
  	$(this).removeClass("button--light").addClass("button--dark");
    $(".active-tab-forecast").removeClass("button--dark").addClass("button--light");
  	$(".active-forecast").hide();
  	$(".active-failure").show();
  })
    	function replyOne(username){
    replyContent = $("#reply_content");
    oldContent = replyContent.val();
    prefix = "@" + username + " ";
    newContent = ''
    if(oldContent.length > 0){
        if (oldContent != prefix) {
            newContent = oldContent + "\n" + prefix;
        }
    } else {
        newContent = prefix
    }
    replyContent.focus();
    replyContent.val(newContent);
    moveEnd($("#reply_content"));
}
    	var moveEnd = function(obj){
  obj.focus();

  var len = obj.value === undefined ? 0 : obj.value.length;

  if (document.selection) {
    var sel = obj.createTextRange();
    sel.moveStart('character',len);
    sel.collapse();
    sel.select();
  } else if (typeof obj.selectionStart == 'number' && typeof obj.selectionEnd == 'number') {
    obj.selectionStart = obj.selectionEnd = len;
  }
};


  